<!DOCTYPE html>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新聞列表</title>
    <link rel="shortcut icon" href="__PUBLIC__/favicon.ico">
    <link href="__admin_css__/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="__admin_css__/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__admin_css__/animate.min.css" rel="stylesheet">
    <link href="__admin_css__/style.min.css?v=4.0.0" rel="stylesheet">
    <base target="_self">

</head>

<body class="gray-bg top-navigation">

<div id="wrapper">
    <div id="page-wrapper" class="gray-bg">
        <div class="row border-bottom white-bg">
            <nav class="navbar navbar-static-top" role="navigation">
                <div class="navbar-header">
                    <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse"
                            class="navbar-toggle collapsed" type="button">
                        <i class="fa fa-reorder"></i>
                    </button>
                    <a href="#" class="navbar-brand">Hplus</a>
                </div>
                <div class="navbar-collapse collapse" id="navbar">
                    <ul class="nav navbar-nav">
                        <li class="active">
                            <a aria-expanded="false" role="button" href="{:url('index/index')}" target="_blank">
                                返回首页</a>
                        </li>
                        <li class="dropdown">
                            <a aria-expanded="false" role="button" href="#" class="dropdown-toggle"
                               data-toggle="dropdown"> 菜单 <span class="caret"></span></a>
                            <ul role="menu" class="dropdown-menu">
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">菜单列表</a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a aria-expanded="false" role="button" href="#" class="dropdown-toggle"
                               data-toggle="dropdown"> 菜单 <span class="caret"></span></a>
                            <ul role="menu" class="dropdown-menu">
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">M菜单列表</a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a aria-expanded="false" role="button" href="#" class="dropdown-toggle"
                               data-toggle="dropdown"> 菜单 <span class="caret"></span></a>
                            <ul role="menu" class="dropdown-menu">
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">菜单列表</a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a aria-expanded="false" role="button" href="#" class="dropdown-toggle"
                               data-toggle="dropdown"> 菜单 <span class="caret"></span></a>
                            <ul role="menu" class="dropdown-menu">
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">菜单列表</a>
                                </li>
                                <li><a href="">菜单列表</a>
                                </li>
                            </ul>
                        </li>

                    </ul>
                    <ul class="nav navbar-top-links navbar-right">
                        <li>
                            <a href="{:url('admin/logout')}">
                                <i class="fa fa-sign-out"></i> 退出
                            </a>
                        </li>
                    </ul>
                </div>
            </nav>
        </div>
        <div class="row">
            <div class="col-lg-8">
                <ul class="list-unstyled">
                    <li><a class="J_menuItem" href="{:url('index/news_add')}">添加新闻</a>
                    </li>
                    <form action="{:url('news/news_select')}">


                        <input type="text" name="id" placeholder="查找">
                        <input type="submit" value="确定">
                    </form>

                </ul>

            </div>

        </div>

        <div class="wrapper wrapper-content">
            <div class="container-fluid ">
                <div class="row">

                    <table class="table table-striped table-bordered table-responsive">
                        <thead>
                        <th>

                        <td>标题</td>
                        <td>关键字</td>
                        <td>作者</td>
                        <td>时间</td>
                        <td>内容</td>
                        <td>操作</td>

                        </th>
                        </thead>

                        {foreach $data as $value}
                        <tr>

                            <td>{$value.id}</td>
                            <td>{$value.title}</td>
                            <td>{$value.keyword}</td>
                            <td>{$value.author}</td>
                            <td>{$value.create_time}</td>

                            <?php  echo date("Y-m-d",strtotime($value['create_time']));?>
                            <td>{$value.content}</td>
                            <td><a class="btn btn-danger btn-xs" href="news_delete?id={$value.id}">删除</a>&nbsp<a
                                    class="btn btn-danger btn-xs" href="news_update?id={$value.id}">修改</a></td>
                        </tr>
                        {/foreach}
                    </table>

                    <div align="center" style="height:20px;">{$page}</div>


                </div>
                <div class="row">
                    <div class="col-lg-8">

                    </div>
                    <div class="col-lg-4">

                    </div>

                </div>

                <div class="row">

                    <div class="col-lg-12">

                    </div>

                </div>

            </div>

        </div>
        <div class="footer">
            <div class="pull-right">
                By：<a href="http://www.zi-han.net" target="_blank">zihan's blog</a>
            </div>
            <div>
                <strong>Copyright</strong> H+ &copy; 2014
            </div>
        </div>
    </div>
</div>

<script src="__admin_js__/jquery.min.js?v=2.1.4"></script>
<script src="__admin_js__/bootstrap.min.js?v=3.3.5"></script>
<script src="__admin_js__/content.min.js?v=1.0.0"></script>
<script src="__admin_js__/plugins/flot/jquery.flot.js"></script>
<script src="__admin_js__/plugins/flot/jquery.flot.tooltip.min.js"></script>
<script src="__admin_js__/plugins/flot/jquery.flot.resize.js"></script>
<script src="__admin_js__/plugins/chartJs/Chart.min.js"></script>
<script src="__admin_js__/plugins/peity/jquery.peity.min.js"></script>
<script src="__admin_js__/demo/peity-demo.min.js"></script>
<script>
    $(document).ready(function () {
        var d1 = [[1262304000000, 6], [1264982400000, 3057], [1267401600000, 20434], [1270080000000, 31982], [1272672000000, 26602], [1275350400000, 27826], [1277942400000, 24302], [1280620800000, 24237], [1283299200000, 21004], [1285891200000, 12144], [1288569600000, 10577], [1291161600000, 10295]];
        var d2 = [[1262304000000, 5], [1264982400000, 200], [1267401600000, 1605], [1270080000000, 6129], [1272672000000, 11643], [1275350400000, 19055], [1277942400000, 30062], [1280620800000, 39197], [1283299200000, 37000], [1285891200000, 27000], [1288569600000, 21000], [1291161600000, 17000]];
        var data1 = [{label: "数据1", data: d1, color: "#17a084"}, {label: "数据2", data: d2, color: "#127e68"}];
        $.plot($("#flot-chart1"), data1, {
            xaxis: {tickDecimals: 0},
            series: {
                lines: {show: true, fill: true, fillColor: {colors: [{opacity: 1}, {opacity: 1}]},},
                points: {width: 0.1, show: false},
            },
            grid: {show: false, borderWidth: 0},
            legend: {show: false,}
        });
        var lineData = {
            labels: ["一月", "二月", "三月", "四月", "五月", "六月", "七月"],
            datasets: [{
                label: "示例数据",
                fillColor: "rgba(220,220,220,0.5)",
                strokeColor: "rgba(220,220,220,1)",
                pointColor: "rgba(220,220,220,1)",
                pointStrokeColor: "#fff",
                pointHighlightFill: "#fff",
                pointHighlightStroke: "rgba(220,220,220,1)",
                data: [65, 59, 40, 51, 36, 25, 40]
            }, {
                label: "示例数据",
                fillColor: "rgba(26,179,148,0.5)",
                strokeColor: "rgba(26,179,148,0.7)",
                pointColor: "rgba(26,179,148,1)",
                pointStrokeColor: "#fff",
                pointHighlightFill: "#fff",
                pointHighlightStroke: "rgba(26,179,148,1)",
                data: [48, 48, 60, 39, 56, 37, 30]
            }]
        };
        var lineOptions = {
            scaleShowGridLines: true,
            scaleGridLineColor: "rgba(0,0,0,.05)",
            scaleGridLineWidth: 1,
            bezierCurve: true,
            bezierCurveTension: 0.4,
            pointDot: true,
            pointDotRadius: 4,
            pointDotStrokeWidth: 1,
            pointHitDetectionRadius: 20,
            datasetStroke: true,
            datasetStrokeWidth: 2,
            datasetFill: true,
            responsive: true,
        };
        var ctx = document.getElementById("lineChart").getContext("2d");
        var myNewChart = new Chart(ctx).Line(lineData, lineOptions)
    });
</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>

</html>